import Vue from 'vue'
import store from "@/store";


export default {
  install(){
    Vue.directive('has',{
      inserted:function (el, binding){
        console.log(binding.value)
        if(store.getters.buttons.includes(binding.value)){
          el.parentNode.removeChild(el)
        }
      }
    })
  }
}
